function columnsTransfer(vm) {
    const cols = [
      {
        title: '序号',
        key: 'rowIndex',
        width: 60,
        align: 'center',
        customRender: function (t, r, index) {
          return parseInt(index) + 1
        }
      },
      {
        title: '单位名称',
        align: 'center',
        dataIndex: 'departName',
        scopedSlots: {customRender: 'departName'},
        key:'departName',
        width: 300,
      },
      {
        title: '年度',
        align: 'center',
        dataIndex: 'year',
        key:'year'
      },
      {
        title: '季度',
        align: 'center',
        dataIndex: 'quarter',
        key:'quarter'
      },
      {
        title: '填表人',
        align: 'center',
        dataIndex: 'create',
        scopedSlots: {customRender: 'create'},
        key:'create'
      },
      {
        title: '审批人',
        align: 'center',
        dataIndex: 'approveName',
        scopedSlots: { customRender: 'approveName' },
        key: 'approveName'
      },
      {
        title: '添加时间',
        align: 'center',
        dataIndex: 'createTime',
        key:'createTime'
      },
      {
        title: '提交时间',
        align: 'center',
        dataIndex: 'subTime',
        key:'subTime'
      },
      {
        title: '审批状态',
        align: 'center',
        dataIndex: 'applystate',
        scopedSlots: {customRender: 'applystate'},
        key:'applystate'
      },
      {
        dataIndex: 'action',
        align: 'center',
        slots: { title: 'actionName' },
        scopedSlots: {customRender: 'action'},
        key:'action'
      }
    ]
    return cols
  }
  
export default columnsTransfer